package com.hss.splitfile;

import android.util.Log;

/**
 * Created by hss on 2017/8/16.
 */

public class SplitFile {
//    String SD_PATH = Environment.getExternalStorageDirectory().getAbsolutePath();
//
//    void diff(){
//        String path = SD_PATH+ File.separator+"aa.mp4";
//        String parrern_path= SD_PATH+ File.separator+"aa_%d.mp4";
//        SplitFile.diff(path,parrern_path,4);
//
//    }
//
//    void merge(){
//        String path = SD_PATH+ File.separator+"aa_merge.mp4";
//        String parrern_path= SD_PATH+ File.separator+"aa_%d.mp4";
//        SplitFile.merge(path,parrern_path,4);
//
//    }
//
    public native static   void diff(String path, String pattern_path, int file_num);
    public native static   void merge(String merge_path, String pattern_path, int file_num);

    public native void newJniThread();

    public native void setJniEnv();

    public native void releaseJniEnv();

    public     void fromJni(int i){
        Log.e("fromJni","i = "+i);
    }

    public  static   void fromJniStatic(int i){
        Log.e("fromJniStatic","i = "+i);

    }


    static {
        System.loadLibrary("splitfile-lib");
    }
}
